<template>
  <view class="order_view">
    <view class="order_info">
      <text class="info_text">订单编号: 5465465324354657</text>
      <text class="time">2024-12-12</text>
    </view>
    <view class="order_box">
      <view class="img_view">
        <image
          style="width: 100%; height: 100%"
          src="@/assets/test/a3.png"
          mode="aspectFill"
        />
      </view>
      <view class="order_content">
        <view class="order_title">
          商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题
        </view>
        <view class="order_norm">
          <text class="norm_text">颜色: 红色 尺码: XL 数量: 1</text>
        </view>
        <view class="order_price">
          <text class="price_text">¥ 299</text>
        </view>
      </view>
    </view>
    <view class="order_handler">
      <view class="btn plain" style="width: 80rpx; height: 50rpx">
        <text class="text">删除</text>
      </view>
      <view class="btn" style="width: 128rpx; height: 50rpx">
        <text class="text">查看详情</text>
      </view>
      <!-- <up-button
        :hairline="false"
        :plain="true"
        color="#eb5757"
        text="删除"
        shape="circle"
        class="btn"
        style="margin-right: 12rpx"
      ></up-button>
      <up-button
        :hairline="false"
        color="#eb5757"
        text="查看详情"
        shape="circle"
        class="btn"
      ></up-button> -->
    </view>
  </view>
</template>

<script setup>
import {} from "vue";
</script>

<style lang="scss" scoped>
.order_view {
  display: flex;
  flex-direction: column;
  margin-bottom: 18rpx;

  .order_box {
    display: flex;
    height: 176rpx;
    align-items: center;
    margin: 18rpx auto;
    .img_view {
      border-radius: 5px;
      height: 100%;
      width: 176rpx;
      margin-right: 12rpx;
    }
    .order_content {
      flex: 1 0 0;
      .order_title {
        font-weight: normal;
        font-size: 28rpx;
        color: #333333;
        line-height: 32rpx;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        -webkit-line-clamp: 2; //显示几行
      }
      .order_norm {
        font-weight: normal;
        font-size: 22rpx;
        color: #828282;
        line-height: 1;
        margin: 12rpx 0;
      }
      .order_price {
        .price_text {
          font-weight: normal;
          font-size: 26rpx;
          color: #333333;
          line-height: 1;
        }
      }
    }
  }

  .order_handler {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    .btn {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0;
      border-radius: 20px;
      margin-left: 12rpx;
      background-color: #eb5757;
      .text {
        font-weight: normal;
        font-size: 24rpx;
        color: #ffffff;
        line-height: 24rpx;
      }
      &.plain {
        border: 2rpx solid #eb5757;
        background-color: transparent;
        .text {
          color: #eb5757;
        }
      }
    }
  }

  .order_info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    .info_text {
      font-weight: normal;
      font-size: 24rpx;
      color: #828282;
      line-height: 1;
    }
    .time {
      font-weight: normal;
      font-size: 22rpx;
      color: #828282;
      line-height: 1;
    }
  }
}
</style>
